package main

import (
	"github.com/golang/glog"
	"glogwrap"
	"time"
)

func main() {
	glogwrap.LogInit(1024*1, 3, false, "ERROR", 2, "logs")

	for true {
		glog.Info("This is a Info log")
		glog.Warning("This is a Warning log")
		glog.Error("This is a Error log")

		glog.V(1).Infoln("level 1")
		glog.V(2).Infoln("level 2")
		glog.V(3).Infoln("level 3")
		glog.V(4).Infoln("level 4")
		glog.V(5).Infoln("level 5")

		time.Sleep(time.Second * 2)
	}
	glog.Flush()
}
